//
//  GMH_CollectionCell.m
//  
//
//  Created by 郭明皓 on 15/11/3.
//
//

#import "GMH_CollectionCell.h"

@implementation GMH_CollectionCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)dealloc
{
    [_mImageUrl release];
    [_productName release];
    [_productTitleContent release];
    [_price release];
    [_saledCount release];
    [_retailPrice release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}
- (void)create
{
    self.productName = [[UILabel alloc]init];
    [self.contentView addSubview:self.productName];
    [_productName release];
    
    self.productTitleContent = [[UILabel alloc]init];
    [self.contentView addSubview:self.productTitleContent];
    [_productTitleContent release];
    
    self.price = [[UILabel alloc]init];
    [self.contentView addSubview: self.price];
    [_price release];
    
    self.retailPrice = [[UILabel alloc]init];
    [self.contentView addSubview:self.retailPrice];
    [_retailPrice release];
    
    self.saledCount = [[UILabel alloc]init];
    [self.contentView addSubview:self.saledCount];
    [_saledCount release];
    
    self.mImageUrl = [[UIImageView alloc]init];
    [self.contentView addSubview:self.mImageUrl];
    [_mImageUrl release];

    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
}
@end
